#pragma once
#include "windows.h"

namespace Network{
	class ThreadManager
	{
	public:
		static ThreadManager* instance(void); //singleton
		void spawn(void* (*function_entry_point) (void *),
							void* arg = 0,
							long flags = 0,
							long stack_size = 0,
							void *stack_pointer = 0,
							DWORD *t_id = 0);

	private:
		static ThreadManager* instance_;
		ThreadManager(void);
		~ThreadManager(void);
	};
}